function is_value_allowed(value: byte_array, allowlist: allowlist): boolean

Utility function which returns whether a value is allowed by a certain allowlist. This means the allowlist is either set to allow all values, or the value is specified in the list of allowed values.

Parameters

  • value — the value to check
  • allowlist — the allowlist
© 2024 Chromia